# coding=utf-8
word = str(input()).split(' ')
print(len(word[-1]))